using Abp.Runtime.Validation;
using System.Collections.Generic;
using Yozeev.Common;
using Yozeev.Dtos;

namespace Yozeev.BusinessLogic.Stats.Dtos
{
    public class GateRecordInput : PagedSortedAndFilteredInputDto, IShouldNormalize
    {
        /// <summary>
        /// DeviceId 设备类型，DeviceName 设备名称，TicketId 票型，
        /// TicketNo 票码，CheckerId 操作员Id，StatusCode 检票状态，
        /// CreationTime 检票时间
        /// </summary>
        public List<QueryData> queryData { get; set; }
        /// <summary>
        /// 正常化排序使用
        /// </summary>
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
